Skip to content

fix: address Copilot feedback on the redesign - #49

Merged
salmanfarisvp merged 1 commit into
developmentfrom
fix/copilot-redesign-feedback
Nov 4, 2026
Merged

salmanfarisvp merged 1 commit into
developmentfrom
fix/copilot-redesign-feedback

Conversation

@salmanfarisvp

Copy link
Copy Markdown
Member

Fixes the two new Copilot comments on #46 (both about #33's redesign).

BBC image URLs (comment): Copilot said BBC feeds use /news/240/... URLs that the resize pattern misses. That isn't what the feeds serve today: all 139 BBC image URLs across the news, world, technology and sport feeds are /ace/standard/240/..., which was already handled. But the comment pointed at a real gap: video items use a third shape, /images/ic/240x135/..., which stayed at 240px. The CDN also accepts a different set of sizes for each shape (/news/ 404s on 1280, /images/ic/ 403s on 2048x1152), so each shape now has its own list of sizes.

Checked against the live CDN: every shape, resized to every width the app requests at the shipped resolutions, returns 200. The existing fallback to the feed's original URL still covers anything unexpected.

mode missing from the README (comment): added to the configuration table with its options and default. rss_title's description also no longer mentions cards, which the redesign removed.

Addresses the two Copilot comments on #46.

BBC image URLs come in more than one shape, and each accepts its own set
of sizes. Only /ace/standard/<w>/ was resized, so video items
(/images/ic/<w>x<h>/) stayed at 240x135, and /news/<w>/ URLs would have
too. Each shape now has its own list of sizes, each verified against the
CDN (/news/ 404s on 1280, /images/ic/ 403s on 2048x1152).

The README configuration table now lists the mode setting, and
rss_title's description no longer mentions the removed cards.
Copilot AI lite review requested due to automatic review settings November 4, 2026 02:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain, and the follow-up URL-resizing changes, expanded test coverage, and documentation updates address the reviewed scope.

No open issues 🎉

What changed in this PR

This pull request addresses follow-up feedback from the redesign by improving BBC image URL resizing and documenting the new layout mode.

Changes:

  • Added shape-specific resizing rules for BBC /ace/, /news/, and /images/ic/ URLs.
  • Expanded tests for supported formats, size boundaries, fallback behavior, and unrelated URLs.
  • Documented mode and updated the rss_title description in the README.
File Description
src/​utils.ts Adds shape-aware BBC image URL resizing logic.
src/​utils.test.ts Tests resizing behavior across supported BBC CDN URL shapes.
README.md Documents layout modes and clarifies the RSS title setting.

This pull request is ready to be approved.

Review effort: Lite

@salmanfarisvp
salmanfarisvp merged commit dc77085 into development Nov 4, 2026
2 checks passed
@salmanfarisvp
salmanfarisvp deleted the fix/copilot-redesign-feedback branch November 4, 2026 02:26
salmanfarisvp added a commit that referenced this pull request Nov 5, 2026
fix: address Copilot feedback on the redesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants